from sqlalchemy import DateTime, func
from sqlalchemy.orm import Mapped, mapped_column

from app.db.sqlalchemy import Base


class FidbackModel(Base):
    """Simple database model for example."""

    __tablename__ = "fidback"

    id: Mapped[int] = mapped_column(
        primary_key=True, autoincrement=True
    )  # noqa: WPS125
    subdivision:Mapped[str]
    division: Mapped[str]
    discription:Mapped[str]
    time_at:Mapped[str] = mapped_column(DateTime, server_default=func.now())

    def __repr__(self) -> str:
        """Show string representation of record."""
        return self.time_at